/*******************************************************************************
 * Copyright (c) 2011 Olexandr V. Shaposhnikov.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Olexandr V. Shaposhnikov - initial API and implementation and/or initial documentation
 *******************************************************************************/
package com.funkyroach.use.core.parser;

import org.antlr.runtime.CharStream;
import org.antlr.runtime.Token;

public class USToken implements Token {
    private Token tkn;
    private int startOffset;
    private int endOffset;

    public USToken(Token lt, int startOffset, int endOffset) {
        tkn = lt;
        this.startOffset = startOffset;
        this.endOffset = endOffset;
    }

    public int getChannel() {
        return tkn.getChannel();
    }

    public int getCharPositionInLine() {
        return tkn.getCharPositionInLine();
    }

    public CharStream getInputStream() {
        return tkn.getInputStream();
    }

    public int getLine() {
        return tkn.getLine();
    }

    public String getText() {
        return tkn.getText();
    }

    public int getTokenIndex() {
        return tkn.getTokenIndex();
    }

    public int getType() {
        return tkn.getType();
    }

    public void setChannel(int arg0) {
        tkn.setChannel(arg0);
    }

    public void setCharPositionInLine(int arg0) {
        tkn.setCharPositionInLine(arg0);
    }

    public void setInputStream(CharStream arg0) {
        tkn.setInputStream(arg0);
    }

    public void setLine(int arg0) {
        tkn.setLine(arg0);
    }

    public void setText(String arg0) {
        tkn.setText(arg0);
    }

    public void setTokenIndex(int arg0) {
        tkn.setTokenIndex(arg0);
    }

    public void setType(int arg0) {
        tkn.setType(arg0);
    }

    public int getStartOffset() {
        return startOffset;
    }

    public int getEndOffset() {
        return endOffset;
    }
}
